package com.living.filedownloader.bean;

import com.liulishuo.filedownloader.FileDownloader;
import com.liulishuo.filedownloader.model.FileDownloadStatus;
import com.md.network.api.Audio;

import java.io.Serializable;

public class TasksManagerModel implements Serializable {

    private int taskid;
    private String albumId;
    private String albumName;
    private String audioId;
    private String author;
    private String name;
    private String url;
    private String path;
    private int status;

//
//    public void convertBean(Audio audio){
//        TasksManagerModel model = new TasksManagerModel();
//        model.setTaskid(audio.getId());
//        model.setAlbumId(audioDB.getAlbum_id());
//        model.setAlbumName(audioDB.getAlbum_name());
//        model.setAudioId(audioDB.getId());
//        model.setName(audioDB.getName());
//        model.setUrl(audioDB.getUrl());
//        model.setAuthor(audioDB.getAuthor());
//        model.setPath(audioDB.getPath());
//        byte status = FileDownloader.getImpl().getStatus(audioDB.getTaskId(), audioDB.getPath());
//        if (status == FileDownloadStatus.completed) {
//            list.add(model);
//        }
//
//    }


    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getTaskid() {
        return taskid;
    }

    public void setTaskid(int taskid) {
        this.taskid = taskid;
    }

    public String getAlbumId() {
        return albumId;
    }

    public void setAlbumId(String albumId) {
        this.albumId = albumId;
    }

    public String getAlbumName() {
        return albumName;
    }

    public void setAlbumName(String albumName) {
        this.albumName = albumName;
    }

    public String getAudioId() {
        return audioId;
    }

    public void setAudioId(String audioId) {
        this.audioId = audioId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
